home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / bash_114.zip / bash-1.14.2 / support / srcdir < prev    next >
Text File  |  1994-08-05  |  246b  |  14 lines

  1. #! /bin/sh
  2. #
  3. # srcdir - print out the absolute pathname of the top of the bash source
  4. #       tree.  Used for getting the right value to makes in subdirectories
  5. #
  6.  
  7. case "$1" in
  8. '.'|./)    pwd ;;
  9. ./*|..*)    echo `pwd`/"$1" ;;
  10. *)    echo "$1" ;;
  11. esac
  12.  
  13. exit 0
  14.